var dataLayer = window["dataLayer"] || []; if (!window.wsf) { window.wsf = { AnalyticsVariables: {} }; } window.wsf.AnalyticsVariables = {"event_name":"internal search","eventCategory":"internal search","search_keyword":null,"eventAction":"search::manual","eventLabel":null,"method":"manual"}; var initData = dataLayer[0]; if (initData !== undefined) { dataLayer[0] = Object.assign({}, initData, window.wsf.AnalyticsVariables); } else { dataLayer.push(window.wsf.AnalyticsVariables); }

résultat

var dataLayer = window["dataLayer"] || []; if (!window.wsf) { window.wsf = { AnalyticsVariables: {} }; } window.wsf.AnalyticsVariables = {"numberResults":16}; var initData = dataLayer[0]; if (initData !== undefined) { if (initData["numberResults"] !== undefined) { window.wsf.AnalyticsVariables["numberResults"] = +initData["numberResults"] + 16; } dataLayer[0] = Object.assign({}, initData, window.wsf.AnalyticsVariables); } else { dataLayer.push(window.wsf.AnalyticsVariables); }
Ignorer le curseur: ingrédients

16 Ingrédients trouvés

{ "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type":"ListItem", "position": 1, "item": { "@id": "/", "name": "Accueil" } } , { "@type":"ListItem", "position": 2, "item": { "@id": "https://www.loreal-paris-me.com/fr/search-page", "name": "Page de recherche" } } , { "@type":"ListItem", "position": 3, "item": { "@id": "https://www.loreal-paris-me.com/fr/search-page/product results", "name": "Produits trouves" } } ] }